package wili.b1.transform;

import java.io.File;

/**
 * 
 * @author weila 2022年10月16日
 */
class Conf {
	interface Maping {
		String[] typeToCtrlType = { "edit", "Input", "button", "Button", "check", "CheckBox", "ComboBox", "ComboBox",
				"multiline_edit", "TextArea" };
	}

	interface FILE {
		File DIR = DIR();

		File from = _file(0), to1 = _file(1), to2 = _file(2);

		File bigJson = new File(DIR, "".isEmpty() ? "acc_all.json" : "SalesDoc.detailView_acc.json");

		static File DIR() {
			String st = "bearJ/awilly/src/main/java/wili/b1/transform/tmp";
			File ret = new File("d:", st);
			if (!ret.exists()) {
				ret = new File("c:", st);
			}
			return ret;
		}
	}

	static File _file(int ind) {
		int opt = -1;
		File[] ff = { new File(FILE.DIR, "acc.json"), new File(FILE.DIR, "acc_new.json"),
				new File(FILE.DIR, "acc_new2.json") };
		if (opt == 1) {
			ff = new File[] { new File(FILE.DIR, "PurchaseDoc.detailView.json"),
					new File(FILE.DIR, "PurchaseDoc.detailView_new.json"),
					new File(FILE.DIR, "PurchaseDoc.detailView_new2.json") };
			return ff[ind];
		}
		return ff[ind];
	}
}
